/// name : "消防栓"
/// serialNumber : "002"
/// model : "XSD"
/// buildingId : 17
/// buildingName : "1号楼"
/// location : "楼梯旁"
/// statusName : "未执行"
/// maintenancePersonnelId : 10256
/// maintenancePersonnel : "王芳"
/// qrcode : "https://qr.yytong.com/ZUaowlGkkcoXchqJduLt6w=="
/// maintenancePersonnelPhone : "18900000000"
/// equipmentId : 3
/// maintenanceDate : "2022-03-18 00:00:00"
/// executeDate : null
/// status : 0
/// content : null
/// optBy : null
/// resultStatus : null
/// deleteStatus : 0
/// id : 4
/// createdBy : "5"
/// createdDate : "2022-03-19 15:39:11"
/// updatedBy : "5"
/// updatedDate : "2022-03-19 15:39:11"

class EquipmentTaskListData {
  EquipmentTaskListData({
      String? name,
      String? serialNumber,
      String? model,
      int? buildingId,
      String? buildingName,
      String? location,
      String? statusName,
      int? maintenancePersonnelId,
      String? maintenancePersonnel,
      String? qrcode,
      String? maintenancePersonnelPhone,
      int? equipmentId,
      String? maintenanceDate,
      dynamic executeDate, 
      int? status,
      dynamic content, 
      dynamic optBy, 
      dynamic resultStatus, 
      int? deleteStatus,
      int? id,
      String? createdBy,
      String? createdDate,
      String? updatedBy,
      String? updatedDate,}){
    _name = name;
    _serialNumber = serialNumber;
    _model = model;
    _buildingId = buildingId;
    _buildingName = buildingName;
    _location = location;
    _statusName = statusName;
    _maintenancePersonnelId = maintenancePersonnelId;
    _maintenancePersonnel = maintenancePersonnel;
    _qrcode = qrcode;
    _maintenancePersonnelPhone = maintenancePersonnelPhone;
    _equipmentId = equipmentId;
    _maintenanceDate = maintenanceDate;
    _executeDate = executeDate;
    _status = status;
    _content = content;
    _optBy = optBy;
    _resultStatus = resultStatus;
    _deleteStatus = deleteStatus;
    _id = id;
    _createdBy = createdBy;
    _createdDate = createdDate;
    _updatedBy = updatedBy;
    _updatedDate = updatedDate;
}

  EquipmentTaskListData.fromJson(dynamic json) {
    _name = json['name'];
    _serialNumber = json['serialNumber'];
    _model = json['model'];
    _buildingId = json['buildingId'];
    _buildingName = json['buildingName'];
    _location = json['location'];
    _statusName = json['statusName'];
    _maintenancePersonnelId = json['maintenancePersonnelId'];
    _maintenancePersonnel = json['maintenancePersonnel'];
    _qrcode = json['qrcode'];
    _maintenancePersonnelPhone = json['maintenancePersonnelPhone'];
    _equipmentId = json['equipmentId'];
    _maintenanceDate = json['maintenanceDate'];
    _executeDate = json['executeDate'];
    _status = json['status'];
    _content = json['content'];
    _optBy = json['optBy'];
    _resultStatus = json['resultStatus'];
    _deleteStatus = json['deleteStatus'];
    _id = json['id'];
    _createdBy = json['createdBy'];
    _createdDate = json['createdDate'];
    _updatedBy = json['updatedBy'];
    _updatedDate = json['updatedDate'];
  }
  String? _name;
  String? _serialNumber;
  String? _model;
  int? _buildingId;
  String? _buildingName;
  String? _location;
  String? _statusName;
  int? _maintenancePersonnelId;
  String? _maintenancePersonnel;
  String? _qrcode;
  String? _maintenancePersonnelPhone;
  int? _equipmentId;
  String? _maintenanceDate;
  dynamic _executeDate;
  int? _status;
  dynamic _content;
  dynamic _optBy;
  dynamic _resultStatus;
  int? _deleteStatus;
  int? _id;
  String? _createdBy;
  String? _createdDate;
  String? _updatedBy;
  String? _updatedDate;

  String? get name => _name;
  String? get serialNumber => _serialNumber;
  String? get model => _model;
  int? get buildingId => _buildingId;
  String? get buildingName => _buildingName;
  String? get location => _location;
  String? get statusName => _statusName;
  int? get maintenancePersonnelId => _maintenancePersonnelId;
  String? get maintenancePersonnel => _maintenancePersonnel;
  String? get qrcode => _qrcode;
  String? get maintenancePersonnelPhone => _maintenancePersonnelPhone;
  int? get equipmentId => _equipmentId;
  String? get maintenanceDate => _maintenanceDate;
  dynamic get executeDate => _executeDate;
  int? get status => _status;
  dynamic get content => _content;
  dynamic get optBy => _optBy;
  dynamic get resultStatus => _resultStatus;
  int? get deleteStatus => _deleteStatus;
  int? get id => _id;
  String? get createdBy => _createdBy;
  String? get createdDate => _createdDate;
  String? get updatedBy => _updatedBy;
  String? get updatedDate => _updatedDate;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['name'] = _name;
    map['serialNumber'] = _serialNumber;
    map['model'] = _model;
    map['buildingId'] = _buildingId;
    map['buildingName'] = _buildingName;
    map['location'] = _location;
    map['statusName'] = _statusName;
    map['maintenancePersonnelId'] = _maintenancePersonnelId;
    map['maintenancePersonnel'] = _maintenancePersonnel;
    map['qrcode'] = _qrcode;
    map['maintenancePersonnelPhone'] = _maintenancePersonnelPhone;
    map['equipmentId'] = _equipmentId;
    map['maintenanceDate'] = _maintenanceDate;
    map['executeDate'] = _executeDate;
    map['status'] = _status;
    map['content'] = _content;
    map['optBy'] = _optBy;
    map['resultStatus'] = _resultStatus;
    map['deleteStatus'] = _deleteStatus;
    map['id'] = _id;
    map['createdBy'] = _createdBy;
    map['createdDate'] = _createdDate;
    map['updatedBy'] = _updatedBy;
    map['updatedDate'] = _updatedDate;
    return map;
  }

}